<template>
<el-container>
  <el-container>
    <el-aside width="250px"><AsidePage/></el-aside>
    <el-main><MainPage/></el-main>
  </el-container>
</el-container>


</template>

<script>
    import store from '@/store'
    import AsidePage from '@/views/page-admin-main/components/RecruitePartyAsidePage'
    import MainPage from '@/views/page-admin-main/RecruiteParty/MainPage'

    export default {
        name: "RecruiteParty",
        components: {
            //HeaderPage,
            AsidePage,
            MainPage
        },
        // 创建前状态
        created () {
          // 在页面加载时读取sessionStorage
          if (sessionStorage.getItem('store')) {
            this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))))
          }
          // 在页面刷新时将store保存到sessionStorage里
          window.addEventListener('beforeunload', () => {
            sessionStorage.setItem('store', JSON.stringify(this.$store.state))
          })
        },
        methods: {
            handleNodeClick(data) {
                console.log(data.id);
            }
        },
        data() {
            return {
            };
        }
    };
</script>


<style>
  .el-header, .el-footer {
    background-color: rgb(255, 255, 255);
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: rgb(255, 255, 255);
    color: #333;
    text-align: center;
  }
  
  .el-main {
    background-color: rgb(255, 255, 255);
    color: #333;
    text-align: center;
    line-height: 20px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
